package homework00105;

import java.util.ArrayList;

public class Player {
	private String name;
	private ArrayList<Integer> list1;
	public ArrayList<Integer> getList1() {
		return list1;
	}
	public void setList1(ArrayList<Integer> list1) {
		this.list1 = list1;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((list1 == null) ? 0 : list1.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Player other = (Player) obj;
		if (list1 == null) {
			if (other.list1 != null)
				return false;
		} else if (!list1.equals(other.list1))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Player [list1=" + list1 + "]";
	}
	private ArrayList<String> list;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ArrayList<String> getList() {
		return list;
	}
	public void setList(ArrayList<String> list) {
		this.list = list;
	}
	public Player() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Player(String name) {
		super();
		this.name = name;
		this.list = new ArrayList<String>();
		this.list1 = new ArrayList<Integer>();
	}
	

}
